export const UNIT_LIST = [
  { value: 1, label: '元' },
  { value: 100, label: '百元' },
  { value: 1000, label: '千元' },
  { value: 10000, label: '万元' },
  { value: 1000000, label: '百万元' },
  { value: 10000000, label: '千万元' },
  { value: 100000000, label: '亿元' }
];

export function typeFilter(list: unknown[], key: unknown) {
  const it = list.find(item => item.value === key);
  if (it) return it.label;
  else return null;
}
